package sjs.sys;

import java.io.InputStream;
import java.net.URL;

import com.google.appengine.tools.admin.Application;

import sjs.util.Common;


public class Test {
	public static void main(String[] args){
//			User user=new User();
//			//user.setId(id)
//			user.setUsername("sjs");
//			user.setUserpwd("123");
//			Greeting gt=new Greeting("aaa",new Date());
//			PMF.save(gt);
//			
//			System.out.println(PMF.getListByQl("select from "+Greeting.class.getName()).size());
//		try{
//			URL url=new URL("http://www.zto.cn/bill.aspx?");
//			url.openConnection();
//			InputStream in = url.openStream();
//              
//              String  str="";
//              while ( in.read() != -1){
//            	  
//            	  byte[] b =new byte[in.available()];
//                  in.read(b);
//                  str+= new String(b, "GB2312"); 
//                   //   System.out.print(String);
//              }
//              in.close(); 
//              System.out.print(str);
//		}catch (Exception e) {
//			e.printStackTrace();
//			// TODO: handle exception
//		}
		//System.out.println(Common.getOutDoMainPage("http://www.sf-express.com/tabid/68/Default.aspx","UTF-8"));

	//	System.out.println(Common.getOutDoMainPage("http://www.sf-express.com/tabid/521/Default.aspx?TrackList=100684652223&code=5159","UTF-8"));
	//	try{System.out.println(Application.readApplication("/").getPath());}catch (Exception e) {e.printStackTrace();}
		System.out.println(Test.class.getName());
 	}
}
